<%@page import="java.util.ArrayList"%>
<%@page import="com.situ.web.entity.Banji"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="<%=request.getContextPath()%>/student?method=insert" method="post">
		用户名：<input type="text" name="name"/><br/>
		年龄：<input type="text" name="age"/><br/>
		性别：<input type="text" name="gender"/><br/>
		班级: <select name="banjiId">
				<%
					List<Banji> list =  (ArrayList<Banji>)request.getAttribute("list");
					for (Banji banji : list) {
				%>
						<option value="<%=banji.getId()%>"><%=banji.getName()%></option>
				<%
					}
				%>
			  </select>
		<br/>
		<input type="submit" value="添加"/>
	</form>
</body>
</html>